package com.yc.sole.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author yizuomin
 * @date 2024/3/11 20:08
 **/
@Data
@Entity
@Table(name = "erp_shipment_order")
@TableName(value = "erp_shipment_order", autoResultMap = true)
public class ShipmentOrder {

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 送货单id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '送货单id'")
    private Long shipmentId;
    /**
     * 订单id
     */
    @Column(columnDefinition = "BIGINT NOT NULL COMMENT '订单id'")
    private Long orderId;
    /**
     * 送货数量
     */
    @Column(columnDefinition = "INT UNSIGNED NOT NULL COMMENT '送货数量'")
    private Integer quantity;
    /**
     * 金额
     */
    @Column(columnDefinition = "DECIMAL(18,2) NOT NULL COMMENT '金额'")
    private BigDecimal amount;
    /**
     * 备注
     */
    @Column(columnDefinition = "VARCHAR(255) COMMENT '备注'")
    private String remark;
}
